package com.lsu.decorate.homework;

/**
 * 说话类
 *
 * @Author wang suo
 * @Date 2020/10/26 0026 10:46
 * @Version 1.0
 */
public class Speak extends AbstractSuperRobot {

    public Speak(AbstractRobot robot) {
        super(robot);
    }

    @Override
    public void clean() {
        speak();
        robot.clean();
    }

    private void speak() {
        System.out.println("然后提示: 主人,我开始工作了哦!");
    }
}
